<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="author" content="wangbo">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>动画转圈</title>
  <style>
    /* 定义动画的名字和特效 */
    @keyframes move {
      0%{
        transform: translate(0,0);
      }
      25%{
        transform: translate(200px,0);
      }
      50%{
        transform: translate(200px,200px);
      }
      75%{
        transform: translate(0,200px);
      }
      100%{
        transform: translate(0,0);
      }
    }
    div{
      width: 100px;
      height: 100px;
      background-color: red;
      animation: move 4s linear 0s infinite;
    }
  </style>
</head>
<body>
  <div>
    我是小方块
  </div>
</body>
</html>